//
//  JMUserAccount.m
//  OpenSesame
//
//  Created by zhangjiaming on 16/1/25.
//  Copyright © 2016年 OpenSesame. All rights reserved.
//

#import "JMUserAccount.h"
@interface JMUserAccount () <NSCoding>

@end

@implementation JMUserAccount
/** 解档 */
- (instancetype)initWithCoder:(NSCoder *)Decoder {
    if (self = [super init]) {
        self.PhoneNumber = [Decoder decodeObjectForKey:@"PhoneNumber"];
        self.Token = [Decoder decodeObjectForKey:@"Password"];
        self.ID = [Decoder decodeObjectForKey:@"ID"];
        self.Name = [Decoder decodeObjectForKey:@"Name"];
        self.Des = [Decoder decodeObjectForKey:@"Des"];
        self.HeadPic = [Decoder decodeObjectForKey:@"HeadPic"];
    }
    return self;
}

/**  归档 */
- (void)encodeWithCoder:(NSCoder *)enCoder {
    [enCoder encodeObject:self.PhoneNumber forKey:@"PhoneNumber"];
    [enCoder encodeObject:self.Token forKey:@"Password"];
    [enCoder encodeObject:self.ID forKey:@"ID"];
    [enCoder encodeObject:self.Name forKey:@"Name"];
    [enCoder encodeObject:self.Des forKey:@"Des"];
    [enCoder encodeObject:self.HeadPic forKey:@"HeadPic"];
}
@end
